package com.classtest.act;

public class Actor extends Person {
    private String school;//毕业院校
    private String piece;//代表作品

    public Actor() {

    }

    public Actor(String name, int age,String school, String piece) {
        super(name, age);
        this.school = school;
        this.piece = piece;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getPiece() {
        return piece;
    }

    public void setPiece(String piece) {
        this.piece = piece;
    }

    @Override
    public void selfIntroduction() {
        super.selfIntroduction();
        System.out.println("北京电影学院：" + school);
        System.out.println("代表作有：" + piece);
    }
}
